﻿using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace HiSportApplet.Core.Entity.Member
{
    /// <summary>
    /// 场馆会员等级
    /// </summary>
    [SugarTable(null, "会员等级")]
    public  class BasVenueMemberGrade : EntityBase
    {
        /// <summary>
        /// 租户Id
        /// </summary>
        [SugarColumn(ColumnDescription = "租户Id")]
        [Required]
        [DefaultValue(0)]
        public long TenantId { get; set; }


        /// <summary>
        /// 等级编码
        /// </summary>
        [SugarColumn(ColumnDescription = "等级编码")]
        [Required]
        [DefaultValue("")]
        [StringLength(50)]
        public string GradeCode { get; set; }


        /// <summary>
        /// 等级名称
        /// </summary>
        [SugarColumn(ColumnDescription = "等级名称")]
        [Required]
        [DefaultValue("")]
        [StringLength(50)]
        public string Name { get; set; }


        /// <summary>
        /// 等级层级
        /// </summary>
        [SugarColumn(ColumnDescription = "等级层级")]
        [Required]
        [DefaultValue(0)]     
        public short Level { get; set; }


        /// <summary>
        /// 是否注册默认等级
        /// </summary>
        [SugarColumn(ColumnDescription = "是否注册默认等级")]
        [Required]
        [DefaultValue(false)]
        public  bool IsDefault { get; set; }

    }
}
